<template>
	<view class="app-container">
		<cell-two title="账号与安全"></cell-two>
		<cell-two title="关于家信"></cell-two>
		<cell-two title="帮助与反馈"></cell-two>
		<view class="btn" @click="handleLogout">退出</view>
	</view>
</template>

<script>
	import {removeToken,removeUser} from '../../utils/auth.js'
	import CellTwo from '../../components/cell-two.vue'
	export default {
		components: {
			CellTwo
		},
		data() {
			return {

			}
		},
		methods: {
			handleLogout() {
				this.$http('/logout','POST').then(res =>{
				})
				removeToken()
				removeUser()
				uni.reLaunch({
					url:'/pages/login/login'
				})
				
			}
		}
	}
</script>

<style>
	.btn {
		padding:14px;
		background-color: #fff;
		text-align: center;
	}
</style>
